import javax.swing.JFrame;

public class Main extends JFrame{
	
	private static User user;
	private static QuestionSystem questionSystem;
	private static Question currentQuestion;

	/*JMenuBar*/
	
    public Main(){
        super("Title");
        user = new User("userName","userPassword");
        questionSystem = new QuestionSystem();
		currentQuestion = questionSystem .generateQuestion();	
		//for(Question question : questionSystem.getQuestions())
		//	System.out.println(question.getQuestionContent());
		
        if(currentQuestion.isImageQuestion())
        	add(new ImageChoiceGamePanel());
        else
			add(new ButtonChoiceGamePanel());
		
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setVisible(true);
        pack();
    }

    public static Question getCurrentQuestion() {
        return currentQuestion;
    }

    public static void setCurrentQuestion(Question currentQuestion) {
        Main.currentQuestion = currentQuestion;
    }

    public static QuestionSystem getQuestionSystem() {
        return questionSystem;
    }

    public static void setQuestionSystem(QuestionSystem questionSystem) {
        Main.questionSystem = questionSystem;
    }

    public static User getUser() {
        return user;
    }

    public static void setUser(User user) {
        Main.user = user;
    }
    
    public static void main(String[] args) {
        Main app = new Main();
    }

}
